package cn.leaf.template;

import java.util.concurrent.locks.ReentrantLock;

/**
 *
 * desc: 模版方法测试
 *
 * Spring等框架中的应用：
 * JdbcTemplate、RedisTemplate、RestTemplate等等
 * -------------------------------------------
 * Jdk中的应用：
 * AQS的子类：ReentrantLock、ReentrantReadWriteLock、CountDownLatch、Semaphore
 * 集合类：AbstractList、AbstractCollection
 * --------------------
 * @author twinkle-leaf
 * @version v1.0.0
 * slogan: There are no two identical leaves in the world.🍃
 *
 */
public class Test {
    public static void main(String[] args) {
        AbstractBankHandler customerA = new CustomerA();
        customerA.preHandler();
        System.out.println("-----------------------");
        AbstractBankHandler customerB = new CustomerB();
        customerB.preHandler();
    }
}
